package com.xmb.common.remote.service;

import com.xmb.common.remote.entity.PayActivityOrder;
import com.xmb.common.remote.entity.OrderCallBackParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by lyndon on 2019/5/13.
 */
@FeignClient(value = "marketing-service")
public interface MarketingService {

    /**
     * 查询常规活动订单信息
     *
     * @param id 常规活动订单ID
     * @return 常规活动订单信息
     */
    @RequestMapping(value="/activitynormalorder/selectPayActivityOrderById/{id}",method = RequestMethod.GET)
    PayActivityOrder selectPayActivityOrderById(@PathVariable(name="id") Long id);


    /**
     * 订单支付成功后的回调接口
     * @param orderCallBackParam
     * @return
     */
    @RequestMapping(value="/activitynormalorder/orderCallBack",method = RequestMethod.POST)
    int orderCallBack(@RequestBody OrderCallBackParam orderCallBackParam);
}
